// const getters = {
//   sidebar: state => state.app.sidebar,
//   visitedViews: state => state.app.visitedViews,
//   token: state => state.user.token,
//   avatar: state => state.user.avatar,
//   name: state => state.user.name,
//   roles: state => state.user.roles,
  
//   menus: state => state.user.menus,
//   permissions: state => state.user.permissions,

//   permission_routers: state => state.permission.routers,
//   addRouters: state => state.permission.addRouters
// }
// export default getters

const getters = {
  sidebar: state => state.app.sidebar,
  visitedViews: state => state.app.visitedViews,

  userId: state => state.user.userId,
  userName: state => state.user.userName,
  avatar: state => state.user.avatar,
  role: state => state.user.role,
  menus: state => state.user.menus,
  permissions: state => state.user.permissions,

  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters
}
export default getters
